<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<table border="1">
		<tr>
			<td>地址</td>
			<td>房屋面积</td>
			<td>朝向</td>
			<td>房龄</td>
			<td>出租价格</td>
			<td>是否已被出租</td>
			<td>修改</td>
			<td>删除</td>
		</tr>
		<c:forEach items="${listHouse}" var="house">
			<tr>
				<td>${house.address}</td>
				<td>${house.area}</td>
				<td>${house.direction}</td>
				<td>${house.houseage}</td>
				<td>${house.price}</td>
				<td>${house.isrent}</td>
				<td><a href="updateHouseById.action?id=${house.id}">修改</a></td>	
				<td><a href="delHouseById.action?id=${house.id}">删除</a></td>
			</tr>
		</c:forEach>
		<tr>
			<td><a href="addHouse.action">添加房屋信息</a></td>
		</tr>
	</table>
			
</body>
</html>